package com.myrule;

import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义负载规则
 * @author Administrator
 */
@Configuration
public class MyRule {
    @Bean
    public RandomRule randomRule(){
        return new RandomRule();
    }
}
